import { createApp } from 'vue'
import App from './App.vue'

import router from "@/router";

import axios from 'axios'

const app = createApp(App)

app.use(router)

//全局修改代理:this.$http 就可以访问axios了
//http://localhost:8181 : 服务端地址
axios.defaults.baseURL = 'http://localhost:8181/'
//$http
app.config.globalProperties.$http = axios

app.mount('#app')